import Vue from 'vue'
import VueRouter from 'vue-router'
//import HomeView from '../views/HomeView.vue'
import NewHome from "@/views/NewHome";
import Login from "@/views/page/Login/Login2";
import button from "@/views/button";
import Welcome from "@/views/Welcome";
Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'home',
    component: NewHome,
    children: [
      /*{
        path: 'image',
        name: 'image',
        component: () => import(/!* webpackChunkName: "about" *!/ '../views/page/Pdf.vue')
      },*/
      {
        path: '/pdf',
        name: 'pdf',
        component: () => import(/* webpackChunkName: "about" */ '../views/page/Pdf/list.vue')
      },
      {
        path: '/video',
        name: 'video',
        component: () => import(/* webpackChunkName: "about" */ '../views/page/Video/list.vue')
      },
      {
        path: '/player',
        name: 'player',
        component: () => import(/* webpackChunkName: "about" */ '../views/page/Video/player.vue')
      }
      ,
      {
        path: '/welcome',
        name: 'welcome',
        component: () => import(/* webpackChunkName: "about" */ '../views/Welcome')
      }
      ,
      {
        path: '/picture',
        name: 'picture',
        component: () => import(/* webpackChunkName: "about" */ '../views/page/picture/list')
      }
    ]
    /*children: [
      {
        path: 'home/files',
        component: () => import('../views/Files')
      }
    ]*/
  },
  {
    path: '/',
    name: 'login',
    component: Login,
  }
]

const router = new VueRouter({
  routes
})

export default router
